Iris recognition method, electronic device and computer-readable storage medium

ABSTRACT

Embodiments of the present disclosure provide an iris recognition method applied for an electronic device and includes: capturing a plurality of face image frames of an object to be recognized; determining whether a face contour of the object to be recognized changes based on the plurality of face image frames; and capturing an iris image of the object to be recognized to perform iris recognition when the face contour changes. Further, embodiments of the present disclosure provide an electronic device and a computer-readable storage medium.

CROSS REFERENCE TO RELATED APPLICATION

This application is based upon and claims a priority to Chinese PatentApplication Serial No. 201710447887.2, filed with the StatusIntellectual Property Office of P. R. China on Jun. 14, 2017, the entirecontents of which are incorporated herein by reference.

FIELD

The present disclosure relates to a field of biometric identificationtechnologies, and more particularly to an iris recognition method, anelectronic device and a computer-readable storage medium.

BACKGROUND

Iris recognition, as important identification, is unique, stable andhighly secure. However, actually, an iris may be forged, thereby needingto improve security of iris recognition.

SUMMARY

An iris recognition method of the embodiments of the present disclosuremay be applied for an electronic device. The iris recognition methodincludes: capturing a plurality of face image frames of an object to berecognized; determining whether a face contour of the object to berecognized changes based on the plurality of face image frames; andcapturing an iris image of the object to be recognized to perform irisrecognition when the face contour changes.

An electronic device of the embodiments of the present disclosureincludes a capturing unit, a processor and an iris recognition module.The capturing unit is configured to capture a plurality of face imageframes of an object to be recognized. The processor is configured todetermine whether a face contour of the object to be recognized changesbased on the plurality of face image frames. The iris recognition moduleis configured to capture an iris image of the object to be recognized toperform iris recognition when the face contour changes.

A computer-readable storage medium of the embodiments of the presentdisclosure includes computer programs configured to combine with anelectronic device capable of photographing. The computer programs areconfigured be executed by a processor to perform the above irisrecognition method.

Additional aspects and advantages of the embodiments of the presentdisclosure will be given in part in the following descriptions, becomeapparent in part from the following descriptions, or be learned from thepractice of the embodiments of the present disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and/or additional aspects and advantages of the embodiments ofthe present disclosure will become apparent and more readily appreciatedfrom the following descriptions made with reference to the drawings, inwhich:

FIG. 1 is a flow chart illustrating an iris recognition method accordingto some embodiments of the present disclosure.

FIG. 2 is a block diagram illustrating an electronic device according tosome embodiments of the present disclosure.

FIG. 3 is a block diagram illustrating an electronic device according tosome embodiments of the present disclosure.

FIG. 4 is a flow chart illustrating an iris recognition method accordingto some embodiments of the present disclosure.

FIG. 5 is a block diagram illustrating an electronic device according tosome embodiments of the present disclosure.

FIG. 6 is a flow chart illustrating an iris recognition method accordingto some embodiments of the present disclosure.

FIG. 7 is a flow chart illustrating an iris recognition method accordingto some embodiments of the present disclosure.

FIG. 8 is a flow chart illustrating an iris recognition method accordingto some embodiments of the present disclosure.

FIG. 9 is a schematic diagram of an internal structure of an electronicdevice according to some embodiments of the present disclosure.

DETAILED DESCRIPTION

Embodiments of the present disclosure will be described in detail andexamples of the embodiments are illustrated in the drawings. The same orsimilar elements and the elements having same or similar functions aredenoted by like reference numerals throughout the descriptions. Theembodiments described herein with reference to the drawings areexplanatory, serve to explain the present disclosure, and are notconstrued to limit the embodiments of the present disclosure.

The present disclosure relates to an iris recognition method. The irisrecognition method may be applied for an electronic device. The irisrecognition method includes: capturing a plurality of face image framesof an object to be recognized; determining whether a face contour of theobject to be recognized changes based on the plurality of face imageframes; and capturing an iris image of the object to be recognized toperform iris recognition when the face contour changes.

The present disclosure relates to an electronic device. The electronicdevice includes a capturing unit, a processor and an iris recognitionmodule. The capturing unit is configured to capture a plurality of faceimage frames of an object to be recognized. The processor is configuredto determine whether a face contour of the object to be recognizedchanges based on the plurality of face image frames. The irisrecognition module is configured to capture an iris image of the objectto be recognized to perform iris recognition when the face contourchanges.

The present disclosure relates to another electronic device. Theelectronic device includes one or more processors, a memory and one ormore programs. The one or more programs have been stored in the memory.The one or more programs are configured to be executed by the one ormore processors. The one or more programs include instructions forperforming the above iris recognition method.

The present disclosure relates to a computer-readable storage medium.The computer-readable storage medium includes computer programsconfigured to combine with an electronic device capable ofphotographing. The computer programs are configured be executed by aprocessor to perform the above iris recognition method.

As illustrated in FIG. 1, an iris recognition method according toembodiments of the present disclosure may be applied for an electronicdevice. The iris recognition method may include the following acts.

S11, a plurality of face image frames of an object to be recognized arecaptured.

S13, it is determined whether a face contour of the object to berecognized changes based on the plurality of face image frames.

S15, an iris image of the object to be recognized is captured to performiris recognition when the face contour changes.

In some embodiments, the iris recognition method as illustrated in FIG.1 according to embodiments of the present disclosure may be implementedby an electronic device 100 as illustrated in FIG. 2 according toembodiments of the present disclosure. The electronic device 100according to embodiments of the present disclosure may include acapturing unit 10, a processor 30 and an iris recognition module 20. ActS11 may be implemented by the capturing unit 10. Act S13 may beimplemented by the processor 30. Act S15 may be implemented by the irisrecognition module 20.

That is, the capturing unit 10 may be configured to capture theplurality of face image frames of the object to be recognized. Theprocessor 30 may be configured to determine whether the face contour ofthe object to be recognized changes based on the plurality of face imageframes. The iris recognition module 20 may be configured to capture theiris image of the object to be recognized to perform the irisrecognition when the face contour changes.

In some embodiments, the electronic device 100 may include a mobilephone, a tablet, a laptop, a smart watch, a smart wristband, smartglasses, a smart helmet, and the like. In specific embodiments of thepresent disclosure, the electronic device 100 may be the mobile phone.

As illustrated in FIG. 3, in some embodiments, another electronic device200 according to embodiments of the present disclosure may include oneor more processors 30, a memory 40 and one or more programs 41. The oneor more programs 41 have been stored in the memory 40. The one or moreprograms 41 are configured to be executed by the one or more processors30. The one or more programs 41 may include instructions for performingthe following acts.

S11, a plurality of face image frames of an object to be recognized arecaptured.

S13, it is determined whether a face contour of the object to berecognized changes based on the plurality of face image frames.

S15, an iris image of the object to be recognized is captured to performiris recognition when the face contour changes.

It should be understood that, the iris recognition technologies are toperform identification by capturing the iris image, extracting featuresfrom the iris image and performing feature matching. However, the irismay be forged. For example, the iris recognition module 20 may capturethe iris image by photographing a picture, a fake eye or the like.Therefore, it is necessary to detect whether the iris is a living oneduring an iris capturing process. With the iris recognition method ofthe embodiments of the present disclosure, during an iris recognitionprocess, by determining whether the face contour of the object to berecognized changes to detect whether the iris corresponding to thecaptured iris image is a living one, the iris recognition may beperformed when the iris is the living one, thereby enhancing thesecurity of iris recognition.

The face contour varies with expression. Therefore, it may be determinedwhether the iris corresponding to the iris image captured by the irisrecognition module 20 is the living one based on the change of the facecontour. For example, when the object to be recognized makes a laughingexpression and a normal expression (i.e. an expressionless state)respectively, the extracted correspondingly face contours are different.Determining whether the face contour changes includes: determiningwhether an area of the face contour of each of the plurality of faceimage frames is equal with each other, or determining whether a shape ofthe face contour of each of the plurality of face image frames matcheswith each other, or the like.

In some embodiments, if the electronic device 100 may include an irisrecognition module 20, capturing the plurality of face image frames ofthe object to be recognized in S11 may include the following acts, asillustrated in FIG. 4.

S111, a first image frame of the object to be recognized is captured.

The iris recognition method according to embodiments of the presentdisclosure may include act S12.

S12, the object to be recognized is prompted to change expression.

S112, a second image frame of the object to be recognized is capturedafter the object to be recognized changes the expression.

As illustrated in FIG. 5, in some embodiments, the electronic device 100further includes an output unit 60. Act S111 and act S112 may beimplemented by the capturing unit 10. Act S12 may be implemented by theoutput unit 60.

That is, the capturing unit 10 may be configured to capture the firstimage frame of the object to be recognized. The output unit 60 may beconfigured to prompt the object to be recognized to change theexpression. The capturing unit 10 may be further configured to capturethe second image frame of the object to be recognized after the objectto be recognized changes the expression.

As illustrated in FIG. 3 again, in some embodiments, the one or programs41 further include instructions for performing the following acts.

S111, a first image frame of the object to be recognized is captured.

S12, the object to be recognized is prompted to change expression.

S112, a second image frame of the object to be recognized is capturedafter the object to be recognized changes the expression.

The capturing unit 10 captures the first frame image when the face ofthe object to be recognized has first expression. Then, the output unit60 prompts the object to be recognized to change the expression. Afterthe object to be recognized changes the expression, the capturing unit10 captures the second frame image when the face of the object to berecognized has second expression. The output unit 60 may prompt theobject to be recognized to change to predetermined expression. Forexample, the output unit 60 may prompt the object to be recognized tomake the predetermined expression such as laughing and being surprised.Alternatively, the output unit 60 may prompt the object to be recognizedto change the expression, but does not limit that the object to berecognized must make the predetermined expression.

The output unit 60 may be a display screen or a speaker of theelectronic device 100. The manner of prompting the object to berecognized to change the expression by the output unit 60 may include avoice, a text, a dynamic graphics, a voice with dynamic graphics, avoice with text, a dynamic graphics with text, and the like. Forexample, the output unit 60 issues a voice signal “please make thelaughing expression” to prompt the object to be recognized to change theexpression, or the output unit 60 displays a text content of “pleasemake the laughing expression” to prompt the object to be recognized tochange the expression.

As illustrated in FIG. 2 again, in some embodiments, the capturing unit10 may be the iris recognition module 20. In some embodiments, theelectronic device 100 further includes a visible-light camera 50. Thecapturing unit 10 may also be the visible-light camera 50. Capturing theplurality of face image frames of the object to be recognized mayinclude: capturing face images by the iris recognition module 20, orcapturing face images by the visible-light camera 50.

As illustrated in FIG. 6, in some embodiments, determining whether theface contour of the object to be recognized changes based on theplurality of face image frames in act S13 may include following acts.

S131, the first image frame is processed to acquire a first face-regionimage, and the second image frame is processed to acquire a secondface-region image.

S132, the first face-region image is processed to extract a first facecontour, and the second face-region image is processed to extract asecond face contour.

S133, an information difference between the first face contour and thesecond face contour is compared with a preset threshold.

S134, it is determined that the face contour of the object to berecognized changes when the information difference is greater than thepreset threshold.

As illustrated in FIG. 2 again, in some embodiments, act S131, act S132,act S133 and act S134 may all be implemented by the processor 30.

That is, the processor 30 may be configured to:

process the first image frame to acquire a first face-region image, andprocess the second image frame to acquire a second face-region image;

process the first face-region image to extract a first face contour, andprocess the second face-region image to extract a second face contour;

compare an information difference between the first face contour and thesecond face contour with a preset threshold; and

determine that the face contour of the object to be recognized changeswhen the information difference is greater than the preset threshold.

As illustrated in FIG. 3 again, in some embodiments, the one or programs41 further include instructions for performing the following acts.

S131, the first image frame is processed to acquire a first face-regionimage, and the second image frame is processed to acquire a secondface-region image.

S132, the first face-region image is processed to extract a first facecontour, and the second face-region image is processed to extract asecond face contour.

S133, an information difference between the first face contour and thesecond face contour is compared with a preset threshold.

S134, it is determined that the face contour of the object to berecognized changes when the information difference is greater than thepreset threshold.

In some embodiments, it takes the visible-light camera 50 as an exampleto capture face images. First, a face region may be extracted from thefirst image frame to acquire the first face-region image, and a faceregion may be extracted from the second image frame to acquire thesecond face-region image. In detail, a face region and a non-face regionmay be separated from each other based on skin color. The processor 30converts the first image frame in a RGB (Red Green Blue) format into thefirst image frame in an YCrCb (Y represents luminance, Cr representsred-difference Chroma component, and Cb represents blue-differenceChroma component) format, and converts the second image frame in the RGBformat into the second image frame in the YCrCb format. Subsequently,each pixel in the first image frame in the YCrCb format is detected andeach pixel in the second image frame in the YCrCb format is detected. Ifcolor data of the pixel falls within a preset range, i.e., 133≤Cr≤173and 177≤Cb≤127, this pixel belongs to a skin region. In this way, thefirst face-region image and the second face-region image may beacquired. However, the first face-region image and the secondface-region image may further include an image of a neck region.Therefore, it needs to remove the neck region. In detail, the neckregion may be removed based on an aspect ratio of the face to acquire anaccurate face region. Subsequently, the processor 30 may process thefirst face-region image by an edge extraction algorithm to acquire thefirst face contour, and process the second face-region image by an edgeextraction algorithm to acquire the second face contour. The processor30 compares the information difference between the first face contourand the second face contour with the preset threshold. The processor 30determines that the face contour of the object to be recognized changeswhen the information difference is greater than the preset threshold. Insome embodiments, the information difference refers to a non-matchingdegree between a shape of the first face contour and a shape of thesecond face contour. The non-matching degree is greater than the presetthreshold that is set based on the non-matching degree, which means thatthe face contour of the object to be recognized changes. In someembodiments, the information difference refers to an area differencebetween the first face contour and the second face contour. The areadifference is greater than the preset threshold that is set based on thearea difference, which means that the face contour of the object to berecognized changes.

In some embodiments, the capturing unit 10 may capture two face imageframes, and determine whether the iris is a living one by comparing theface contours in the two face image frames. In other embodiments, thecapturing unit 10 may capture the plurality of face image frames, suchas three frames, four frames, etc., and determine whether the iris isthe living one by comparing the face contours in the plurality of faceimage frames change. It takes the capturing unit 10 to capture threeface image frames as an example. During a capturing process, thecapturing unit 10 may capture one face image frame and capture two faceimage frames after the object to be recognized is prompted to change theexpression. Alternatively, the capturing unit 10 may capture one faceimage frame, and capture one face image frame after the object to berecognized is prompted to change the expression. Then, the electronicdevice 100 again prompts the object to be recognized to change theexpression, and one face image frame may be captured again. Therefore,three face image frames may be acquired. Alternatively, the capturingunit 10 may capture two face image frames and capture one face imageframe after the object to be recognized is prompted to change theexpression. In other words, the capturing unit 10 needs to capture theface image frames under at least two expression states of the object tobe recognized. In this way, it may detect whether the iris is a livingone by comparing the face image frames.

As illustrated in FIG. 7, in some embodiments, the iris recognitionmethod according to the embodiments of the present disclosure furtherincludes the following acts.

S14, the plurality of face image frames are processed to determinewhether facial expression of the object to be recognized changes.

Capturing the iris image of the object to be recognized to perform theiris recognition when the face contour changes in act S15 may includeact S151.

S151, the iris image of the object to be recognized is captured toperform the iris recognition when both the face contour and the facialexpression of the object to be recognized change.

As illustrated in FIG. 2, in some embodiments, act S14 may beimplemented by the processor 30. Act S151 may be implemented by the irisrecognition module 20.

That is, the processor 30 is further configured to:

process the plurality of face image frames to determine whether facialexpression of the object to be recognized changes.

The iris recognition module 20 is further configured to:

capture the iris image of the object to be recognized to perform theiris recognition when both the face contour and the facial expression ofthe object to be recognized change.

As illustrated in FIG. 3, in some embodiments, the one or more programs41 further include instructions for performing the following acts.

S14, the plurality of face image frames are processed to determinewhether facial expression of the object to be recognized changes.

S151, the iris image of the object to be recognized is captured toperform the iris recognition when both the face contour and the facialexpression of the object to be recognized change.

Therefore, when it is determined that the face contour of the object tobe recognized changes, the processor 20 determines whether the facialexpression of the object to be recognized changes by processing thefirst image frame and the second image frame. When it is determined thatthe iris is a living one when the facial expression of the object to berecognized change. The iris recognition module 20 then captures the irisimage for the iris recognition. It should be understood that, in somepractical scenarios, after the object to be recognized changes theexpression, the face contour does not change significantly. At thistime, it is possible to more accurately detect whether the iris is aliving one through the expression recognition, thereby avoidingmisjudgment.

As illustrated in FIG. 8, in some embodiments, processing the pluralityof face image frames to determine whether the facial expression of theobject to be recognized changes in act S14 may include the followingacts.

S141, the first image frame is processed to acquire first facialexpression, and the second image frame is processed to acquire secondfacial expression.

S142, it is determined whether the first facial expression is the samewith the second facial expression.

S143, when the first facial expression is different from the secondfacial expression, it is determined that the facial expression of theobject to be recognized changes.

As illustrated in FIG. 2, in some embodiments, act S141, act 142 and act143 all may be implemented by the processor 30.

That is, the processor 30 is configured to:

process the first image frame to acquire first facial expression, andprocess the second image frame to acquire second facial expression;

determining whether the first facial expression is the same with thesecond facial expression; and

when the first facial expression is different from the second facialexpression, determine that the facial expression of the object to berecognized changes.

As illustrated in FIG. 3, in some embodiments, the one or more programs41 further include instructions for performing the following acts.

S141, the first image frame is processed to acquire first facialexpression, and the second image frame is processed to acquire secondfacial expression.

S142, it is determined whether the first facial expression is the samewith the second facial expression.

S143, when the first facial expression is different from the secondfacial expression, it is determined that the facial expression of theobject to be recognized changes.

In some embodiments, the processor 30 may acquire the first facialexpression by performing the processing such as feature extraction andfacial expression classification on the first image frame. The processor30 may acquire the second facial expression by performing the processingsuch as feature extraction and facial expression classification on thesecond image frame. Sizes of facial organs such as eyes, eyebrows, mouthand the like and distances between various organs may be used asattribute features based a geometric feature method as so to perform thefacial feature extraction on the first image frame and the second imageframe. After the facial features are extracted, expressionclassification recognition may be performed based on the extractedfacial features to obtain the first facial expression and the secondfacial expression. If it is detected that the first facial expressionand the second facial expression are not the same, for example, thefirst facial expression is a smile and the second facial expression is ahappy laugh, the first facial expression is not the same with the secondfacial expression. In this case, the facial expression of the object tobe recognized is considered to change. Further, the iris that iscurrently captured is considered to be the living one. The irisrecognition module 20 then captures the iris image for iris recognition.Since the change of facial expression is more easily detected than thechange of the face contour, the accuracy of living iris detection can begreatly improved.

FIG. 9 is a schematic diagram of an internal structure of an electronicdevice according to an embodiment of the present disclosure. Withreference to FIG. 9, the electronic device 900 includes a radiofrequency (RF) circuit 910, a memory 920, an input unit 930, a displayunit 940, a sensor 950, an audio circuit 960, a wireless fidelity(Wi-Fi) module 970, a processor 980 and a power supply 990, and thelike. It may be understood by those skilled in the art that thestructures of the electronic device 900 illustrated in FIG. 9 do notlimit the structures of the electronic device. The electronic device mayinclude less or more components than those illustrated in FIG. 9 orcombinations thereof, or have a different arrangement of components.

The RF circuit 910 may be configured to receive or transmit a signalduring a process of transmitting or receiving a message or making acall. The RF circuit 910 may be configured to receive downlink data froma base station and to transmit the downlink data to the processor 980.Alternatively, the RF circuit 910 may be configured to transmit uplinkdata to the base station. In general, the RF circuit includes but is notlimited to an antenna, at least one amplifier, a transceiver, a coupler,a low noise amplifier (LNA), a diplexer and the like. Furthermore, theRF circuit 910 may be further configured to communicate with otherdevices via wireless communication and network. The above wirelesscommunication may adopt any communication standard or protocol, whichincludes but is not limited to global system of mobile communication(GSM), general packet radio service (GPRS), code division multipleaccess (CDMA), wideband code division multiple access (WCDMA), long termevolution (LTE), e-mail, short messaging service (SMS) and the like.

The memory 920 may be configured to store software programs or modules.The processor 980 is configured to execute various functionalapplications and data processes of the electronic device 900 by runningthe software programs and modules stored in the memory 920. The memory920 may mainly include a program storage region and a data storageregion. The program storage region may store an operation system, atleast one function required applications (such as an application havinga sound playing function, an application having an image playingfunction) and the like. The data storage region may store data producedby using the electronic device 900 (such as audio data, an address book)and the like. In addition, the memory 920 may include a high speedrandom access memory and may include a non-volatility memory, such as atleast one disk memory, a flash memory, or other volatility solid statememory.

The input unit 930 may be configured to receive figure or characterinformation inputted and generate a key signal input related to a usersetup or function control of the electronic device 900. In detail, theinput unit 930 may include a touch panel 931 and other input devices932. The touch panel 931 (also called as touch screen) may be configuredto gather touch operations near or on the touch panel 931 (such as anoperation on the touch panel 931 or near the touch panel 931 of the userwith a finger, a stylus or other suitable objects or attachments), anddrive corresponding connected device according to a preset program. Inan embodiment, the touch panel 931 may include a touch detection deviceand a touch controller. The touch detection device detects anorientation of the user's touch, detects a signal caused by the touchoperation and sends the signal to the touch controller. The touchcontroller receives the touch information on the touch detection device,converts the touch information to touch point coordinates, and sends thetouch point coordinates to the processor 980. Furthermore, the touchcontroller may receive and execute a command sent from the processor980. The touch panel 931 may be implemented as resistance typed,capacitive typed, infrared typed and surface acoustic wave typed. Inaddition to the touch panel 931, the input unit 930 may further includeother input devices 932. In detail, the other input devices 932 mayinclude but without limitation to one or more of a physical keyboard, afunctional key (such as a volume control key, a switch key and thelike).

The display unit 940 may be configured to display information inputtedby the user or information provided to the user or various menus of theelectronic device 900. The display unit 940 may include a display panel941. In an embodiment, the display panel 941 may be configured as aliquid crystal display (LCD), an organic light-emitting diode (OLED) andthe like. In an embodiment, the touch panel 931 may cover the displaypanel 941. When the touch panel 931 detects the touch operation on thetouch panel 931 or near the touch panel 931, the touch operation istransmitted to the processor 980 to determine a type of the touch event.Thereafter, the processor 980 provides a corresponding visual output onthe display panel 941 according to the type of the touch event. Althoughthe touch panel 931 and the display panel 941 are two separatecomponents to realize an input and output function of the electronicdevice 900 illustrated in FIG. 9, in certain embodiments, the touchpanel 931 and the display panel 941 may be integrated to realize theinput and output function of the electronic device 900,

The electronic device 900 may further include at least one sensor 950,such as a gyroscope, an optical sensor, a motion sensor and othersensors. In detail, the gyroscope is configured to collect a rotationangular velocity of the electronic device 900. The optical sensor mayinclude a surrounding light sensor and a proximity sensor. Thesurrounding light sensor may adjust a brightness of the display panel941 according to surrounding lights. The proximity sensor may close thedisplay panel 941 and/or backlight when the electronic device 900 movesnear ears of the user. The motion sensor may include an accelerationsensor, for measuring the acceleration value in various directions viathe acceleration sensor, measuring a value and a direction of gravitywhen the electronic device 900 is static, and identifying a state of theelectronic device 900 (such as landscape screen and portrait screenswitching), jitter related functions (such as a pedometer, a knocking)and the like. Furthermore, the electronic device 900 may be configuredwith a barometer, a hygrometer, a thermometer, an infrared sensor andother sensors.

The audio circuit 960, a loudspeaker 961 and a microphone 962 mayprovide an audio interface between the user and the electronic device900. The audio circuit 960 may transmit an electrical signal convertedfrom the audio data received to the loudspeaker 961. The loudspeaker 961converts the electrical signal to a sound signal and output the soundsignal. In another aspect, the microphone 962 may convert gathered soundsingles to electrical signals. The audio circuit 960 receives andconverts the electrical signals to audio data and outputs the audio datato the processor 980 to be processed. The audio data processed by theprocessor 980 may be transmitted to another electronic device via the RFcircuit 910 or may be stored in the memory 920 to be subsequentlyprocessed.

Wi-Fi is a short distance wireless communication technology. Theelectronic device 900 may help the user to receive or send an e-mail,search webpages, access to stream medium via the Wi-Fi module 970. TheWi-Fi module 970 provides a wireless broadband Internet access. Althoughthe Wi-Fi module 970 is illustrated in FIG. 9, it may be understoodthat, the Wi-Fi module 970 is not necessary for the electronic device900, thus it may be omitted according to demands.

The processor 980 is a control center of the electronic device 900,which utilizes various interfaces and wires to connect various parts ofthe electronic device 900. By running or executing the software programand/or modules stored in the memory 920, and by invoking data stored inthe memory 920, the various functions and data processing functions maybe executed, thus integrally monitoring the electronic device 900. In anembodiment, the processor 980 may include one or more processing units.In an embodiment, the processor 980 may be integrated with anapplication processor or a modem processor. The application processormainly processes the operation system, a user interface and anapplication. The modem processor mainly processes wirelesscommunication. It may be understood that, the above modem controller maybe not integrated in the processor 980.

The electronic device 300 may further include a power supply 990 (suchas a battery) for providing powers to various parts of the electronicdevice. Alternatively, the power supply may be logically connected to apower management system and the processor 980, thereby managing acharging, discharging and power consumption via the power managementsystem.

In an embodiment, the electronic device 900 may further include acamera, a Bluetooth module and the like.

In embodiments of the present disclosure, the processor 980 included inthe electronic device may execute the computer programs stored in thememory to achieve the above method, which will be not repeated here.

The computer-readable storage medium according to embodiments of thepresent disclosure includes computer programs configured to combine withan electronic device capable of photographing. The computer programs areconfigured to be executed by a processor to perform the iris recognitionmethod according to any one of the above embodiments of the presentdisclosure.

For example, the computer programs may be executed by the processor toperform the iris recognition method described in the following acts.

S11, a plurality of face image frames of an object to be recognized arecaptured.

S13, it is determined whether a face contour of the object to berecognized changes based on the plurality of face image frames.

S15, an iris image of the object to be recognized is captured to performiris recognition when the face contour changes.

Reference throughout this specification to “an embodiment,” “someembodiments,” “one embodiment”, “another example,” “an example,” “aspecific example,” or “some examples,” means that a particular feature,structure, material, or characteristic described in connection with theembodiment or example is included in at least one embodiment or exampleof the present disclosure. Thus, the appearances of the above phrases invarious places throughout this specification are not necessarilyreferring to the same embodiment or example of the present disclosure.Furthermore, the particular features, structures, materials, orcharacteristics may be combined in any suitable manner in one or moreembodiments or examples. In addition, those skilled in the art maycombine the different embodiments or examples described in thisspecification and features of different embodiments or examples withoutconflicting with each other.

Terms such as “first” and “second” are used herein for purposes ofdescription and are not intended to indicate or imply relativeimportance or significance or imply the number of technical features.Furthermore, the feature defined by “first” or “second” may indicate orimply including at least one feature. In the description of the presentdisclosure, “a plurality of” refers to two or more unless otherwisespecified.

Any process or method described in a flow chart or described herein inother ways may be understood to include one or more modules, segments orportions of codes of executable instructions for achieving specificlogical functions or steps in the process, and the scope of a preferredembodiment of the present disclosure includes other implementations, inwhich the functions may be executed in other orders instead of the orderillustrated or discussed, including in a basically simultaneous manneror in a reverse order, which should be understood by those skilled inthe art.

Any process or method described in a flow chart or described herein inother ways may be understood to be a sequence table of executableinstructions for achieving logical functions, which may be realized inany computer-readable medium for being used by the instruction executionsystem, device or apparatus (for example, the system based on thecomputer, the system including the processor or other systems capable ofreading instructions from the instruction execution system, device orapparatus and executing the instructions) or being used in combinationwith the instruction execution system, device or apparatus. In thespecification, “computer-readable medium” may be any device including,storing, communicating, broadcasting or transmitting programs for beingused by the instruction execution system, device or apparatus or beingused in combination with the instruction execution system, device orapparatus. Specific examples of the computer-readable medium(non-exhaustiveness list) include: electrical connection (electronicdevice) having one or one wires, portable computer disk box (magneticdevice), random access memory (RAM), read only memory (ROM),electrically programmable read-only-memory (EPROM or flash memory),fiber device, and portable CD-ROM. In addition, the computer-readablemedium may even to paper on which programs can be printed or otherappropriate medium, this is because optical scanning may be performed onthe paper or the other medium, and then edit, interpretation or anyother appropriate way if necessary are performed to electrically obtainthe programs, and then the programs are stored in the computer storage.

It should be understood that each part of the present disclosure may berealized by the hardware, software, firmware or their combination. Inthe above embodiments, a plurality of steps or methods may be realizedby the software or firmware stored in the memory and executed by theappropriate instruction execution system. For example, if it is realizedby the hardware, likewise in another embodiment, the steps or methodsmay be realized by one or a combination of the following techniquesknown in the art: a discrete logic circuit having a logic gate circuitfor realizing a logic function of a data signal, an application-specificintegrated circuit having an appropriate combination logic gate circuit,a programmable gate array (PGA), a field programmable gate array (FPGA),etc.

Those skilled in the art shall understand that all or parts of the stepsin the above exemplifying method of the present disclosure may beachieved by commanding the related hardware with programs. The programsmay be stored in a computer readable storage medium, and the programsinclude one or a combination of the steps in the method embodiments ofthe present disclosure when run on a computer.

In addition, each function cell of the embodiments of the presentdisclosure may be integrated in a processing module, or these cells maybe separate physical existence, or two or more cells are integrated in aprocessing module. The integrated module may be realized in a form ofhardware or in a form of software function modules. When the integratedmodule is realized in a form of software function module and is sold orused as a standalone product, the integrated module may be stored in acomputer readable storage medium.

The storage medium mentioned above may be read-only memories, magneticdisks or CD, etc. Although explanatory embodiments have been shown anddescribed, it would be appreciated by those skilled in the art that theabove embodiments cannot be construed to limit the present disclosure,and changes, alternatives, and modifications can be made in theembodiments without departing from scope of the present disclosure.

What is claimed is:
 1. An iris recognition method, applied for anelectronic device, and comprising: capturing a first image frame of anobject to be recognized; prompting the object to be recognized to changeexpression; capturing a second image frame of the object to berecognized after the object to be recognized changes the expression;determining whether a face contour of the object to be recognizedchanges, comprising: processing the first image frame to acquire a firstface-region image, and processing the second image frame to acquire asecond face-region image, processing the first face-region image toextract a first face contour, and processing the second face-regionimage to extract a second face contour, comparing an informationdifference between the first face contour and the second face contourwith a preset threshold, and determining that the face contour of theobject to be recognized changes when the information difference isgreater than the preset threshold, in which the information differencerefers to a non-matching degree between a shape of the first facecontour and a shape of the second face contour, or the informationdifference refers to an area difference between the first face contourand the second face contour; and capturing an iris image of the objectto be recognized to perform iris recognition when the face contourchanges.
 2. The method according to claim 1, wherein the electronicdevice comprises an iris recognition module, and the first and secondface image frames of the object to be recognized are captured by theiris recognition module; or, the electronic device comprises avisible-light camera, and the first and second face image frames of theobject to be recognized are captured by the visible-light camera.
 3. Themethod according to claim 1, further comprising: processing the firstand second face image frames to determine whether facial expression ofthe object to be recognized changes; wherein capturing the iris image ofthe object to be recognized to perform the iris recognition when theface contour changes comprises: capturing the iris image of the objectto be recognized to perform the iris recognition when both the facecontour and the facial expression of the object to be recognized change.4. The method according to claim 3, wherein processing the first andsecond face image frames to determine whether the facial expression ofthe object to be recognized changes comprises: processing the firstimage frame to acquire first facial expression, and processing thesecond image frame to acquire second facial expression; determiningwhether the first facial expression is the same as the second facialexpression; and when the first facial expression is different from thesecond facial expression, determining that the facial expression of theobject to be recognized changes.
 5. The method according to claim 1,wherein processing the first image frame to acquire a first face-regionimage comprises: extracting a first face region from the first imageframe based on skin color; and removing a first neck region from thefirst face region based on an aspect ratio of the face to acquire thefirst face-region image; processing the second image frame to acquire asecond face-region image comprises: extracting a second face region fromthe second image frame based on skin color; and removing a second neckregion from the first face region based on an aspect ratio of the faceto acquire the second face-region image.
 6. An electronic device,comprising: a processor; and a non-transitory computer readable storagemedium storing computer programs that, when executed by the processor,cause the electronic device to: capture a first image frame of an objectto be recognized; prompt the object to be recognized to changeexpression; capture a second image frame of the object to be recognizedafter the object to be recognized changes the expression; determinewhether a face contour of the object to be recognized changes, thedetermining the face contour of the object to be recognized changescomprising: processing the first image frame to acquire a firstface-region image, and processing the second image frame to acquire asecond face-region image, processing the first face-region image toextract a first face contour, and processing the second face-regionimage to extract a second face contour, comparing an informationdifference between the first face contour and the second face contourwith a preset threshold, and determining that the face contour of theobject to be recognized changes when the information difference isgreater than the preset threshold, in which the information differencerefers to a non-matching degree between a shape of the first facecontour and a shape of the second face contour, or the informationdifference refers to an area difference between the first face contourand the second face contour; and capture an iris image of the object tobe recognized to perform iris recognition when the face contour changes.7. The electronic device according to claim 6, wherein the first andsecond face image frames of the object to be recognized are captured byan iris recognition module; or, the electronic device comprises avisible-light camera, and the first and second face image frames of theobject to be recognized are captured by the visible-light camera.
 8. Theelectronic device according to claim 6, wherein the processor is furtherconfigured to: process first and second face image frames to determinewhether facial expression of the object to be recognized changes;capture the iris image of the object to be recognized to perform theiris recognition when both the face contour and the facial expression ofthe object to be recognized change.
 9. The electronic device accordingto claim 8, wherein the processor is configured to: process the firstimage frame to acquire first facial expression, and process the secondimage frame to acquire second facial expression; determining whether thefirst facial expression is the same as the second facial expression; andwhen the first facial expression is different from the second facialexpression, determine that the facial expression of the object to berecognized changes.
 10. The electronic device according to claim 6,wherein the processor is configured to process the first image frame toacquire the first face-region image by acts of: extracting a first faceregion from the first image frame based on skin color; and removing afirst neck region from the first face region based on an aspect ratio ofthe face to acquire the first face-region image; wherein the processoris configured to process the second image frame to acquire the firstface-region image by acts of: extracting a second face region from thesecond image frame based on skin color; and removing a second neckregion from the first face region based on an aspect ratio of the faceto acquire the second face-region image.
 11. A non-transitorycomputer-readable storage medium, comprising computer programsconfigured to combine with an electronic device capable ofphotographing, and to be executed by a processor to perform an irisrecognition method, the method comprising: capturing a first image frameof an object to be recognized; prompting the object to be recognized tochange expression; capturing a second image frame of the object to berecognized after the object to be recognized changes the expression;determining whether a face contour of the object to be recognizedchanges, comprising: processing the first image frame to acquire a firstface-region image, and processing the second image frame to acquire asecond face-region image, processing the first face-region image toextract a first face contour, and processing the second face-regionimage to extract a second face contour, comparing an informationdifference between the first face contour and the second face contourwith a preset threshold, and determining that the face contour of theobject to be recognized changes when the information difference isgreater than the preset threshold, in which the information differencerefers to a non-matching degree between a shape of the first facecontour and a shape of the second face contour, or the informationdifference refers to an area difference between the first face contourand the second face contour; and capturing an iris image of the objectto be recognized to perform iris recognition when the face contourchanges.
 12. The non-transitory computer-readable storage mediumaccording to claim 11, wherein the method further comprises: processingthe first and second face image frames to determine whether facialexpression of the object to be recognized changes; wherein capturing theiris image of the object to be recognized to perform the irisrecognition when the face contour changes comprises: capturing the irisimage of the object to be recognized to perform the iris recognitionwhen both the face contour and the facial expression of the object to berecognized change.
 13. The non-transitory computer-readable storagemedium according to claim 12, wherein processing the first and secondface image frames to determine whether the facial expression of theobject to be recognized changes comprises: processing the first imageframe to acquire first facial expression, and processing the secondimage frame to acquire second facial expression; determining whether thefirst facial expression is the same as the second facial expression; andwhen the first facial expression is different from the second facialexpression, determining that the facial expression of the object to berecognized changes.
 14. The non-transitory computer-readable storagemedium according to claim 11, wherein processing the first image frameto acquire a first face-region image comprises: extracting a first faceregion from the first image frame based on skin color; and removing afirst neck region from the first face region based on an aspect ratio ofthe face to acquire the first face-region image; processing the secondimage frame to acquire a second face-region image comprises: extractinga second face region from the second image frame based on skin color;and removing a second neck region from the first face region based on anaspect ratio of the face to acquire the second face-region image.